<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Repositories\Admin\IndexRepository;


class IndexController extends Controller
{

    public function index()
    {

        $repository = IndexRepository::getInstance();
        $admin_menus = $repository->getMenus();
        return json_encode($admin_menus);
    }

}
